//引入axios
import axios from "../utils/utils";

//登陆验证
export let loginCheck = (params)=>{
    return axios.post('/users/checkLogin',params)
}

//添加账号
export let AddUser = (params)=>{
    return axios.post('/users/add',params)
}

//账号列表
export let userlist = (params)=>{
    return axios.get('/users/list',{params})
}

//删除列表
export let userdel = (params)=>{
    return axios.get('/users/del',{params})
}

//批量删除列表
export let userdelall = (params)=>{
    return axios.get('/users/batchdel',{params})
}

//修改账号
export let useredit = (params)=>{
    return axios.post('/users/edit',params)
}

//检查旧密码
export let checkoldpwd = (params)=>{
    return axios.get('/users/checkoldpwd',{params})
}

//修改密码
export let editpwd = (params)=>{
    return axios.post('/users/editpwd',params)
}

//获取个人信息
export let accountinfo = (params)=>{
    return axios.get('/users/accountinfo',{params})
}

//获取个人信息
export let checktoken = (params)=>{
    return axios.get('/users/checktoken',{params})
}